package com.chushouya.manager.dto.admin.partner;

import com.chushouya.manager.constants.PartnerTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("合作商")
@Data
public class PartnerSimpleDTO {

    @ApiModelProperty("合作商ID")
    private Long partnerId;

    @ApiModelProperty("合作商名称")
    private String partnerName;

    @ApiModelProperty("合作商类型")
    private Integer partnerType;

    @ApiModelProperty("合作商类型")
    private String partnerTypeText;

    public String getPartnerTypeText() {
        return PartnerTypeEnum.getDesc(this.partnerType);
    }
}
